$(function(){
	var c=new CustomersComponent($("#customers"));
	c.findAllCustomers();
	
	$("button", "form").on("click", function(e){
		var cname=$("input[name=cname]").val();
		var sal=$("input[name=sal]").val();
		var birth=$("input[name=birth]").val();
		var sex=$("input[name=sex]:checked").val();
		var c1={cname:cname,sex:sex,birth:birth,sal:sal};
		c.addCustomer(c1);
		e.preventDefault();
	});
});
	